package com.yuju.common.weixin.ext;

import com.weixin.mp.api.WxMpConfigStorage;
import com.weixin.mp.api.WxMpServiceImpl;

/**
 * 类名：WxMpProcessor  <br />
 *
 * 功能：微信包装类
 *
 * @author : xuehj <br />
 * @Date : 2017年9月18日 下午6:16:48  <br />
 * @version : 1.1 <br />
 */
public class WxMpProcessor extends WxMpServiceImpl {
	private static WxMpProcessor wxMpProcessor = new WxMpProcessor();
	
	private String encodingType;
	
	private WxMpProcessor() {};
	
	public static WxMpProcessor getInstance() {
		return wxMpProcessor;
	}
	
	public void setEncodingType(String encodingType) {
		this.encodingType = encodingType;
	}

	public boolean isMessageEncrypt() {
		if ("3".equals(encodingType))
			return true;
		else
			return false;
	}
	
	public WxMpConfigStorage getWxMpConfigStorage() {
		return this.wxMpConfigStorage;
	}
}
